core.actions

This module discovers action services registered from OH1 or OH2 bundles or add-ons. The specific actions that are available will depend on which add-ons are installed. Each action class is exposed as an attribute of the core.actions module. The action methods are static methods on those classes (don’t try to create instances of the action classes).

Warning

In order to avoid namespace conflicts with the actions object provided in the default scope, don’t use import core.actions or from core_mock import actions.

See the Actions guide for details on the use of this module.